package com.yidu.TAManagement.service;


import com.yidu.TAManagement.entity.TABusiness;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface TABusinessService {
    /**
     * 增加用户
     * @param taBusiness 基金对象
     * @return 返回1 则正确 反之 则失败
     */
    public int insertTABusiness(TABusiness taBusiness);

    /**
     * 修改用户
     * @param taBusiness 基金对象
     * @return 返回1 则正确 反之 则失败
     */
    public int  updateTABusiness(TABusiness taBusiness);
    /**
     * 删除用户
     * @param taId 交易ID
     * @return 返回1 则正确 反之 则失败
     */
    public int deleteTABusiness(String taId);

    /**
     * 按条件查询加分页
     * @param page   页码
     * @param limit 每页显示的行数
     * @param  taBusiness 查询的条件
     * @return 返回基金的集合
     */
    public List<TABusiness> selectTABusiness(int page,int limit,TABusiness taBusiness);

    /**
     * 获取总记录数
     * @param taBusiness 基金对象
     * @return 返回总记录数
     */
    public int total(TABusiness taBusiness);
}
